﻿using System;
using System.Collections.Generic;

using System.Text;
using QUANLYCHAMCONG.BL.Entities;
using System.Data;
using ModuleDALCore;
using QUANLYCHAMCONG.DAO.Core;

namespace QUANLYCHAMCONG.DAO.DAO
{
    public class CheckAviableDAO:DALBase
    {
        private string _SpName;
        public string SpName
        {
            get { return "CheckAviable"; }
            set { _SpName = value; }
        }
        public CheckAviableDAO()
        {
            OpenConnect();
        }
        public DataTable Check(CheckAviable tg)
        {
            try
            {
                return DBManager.Intance.ExecuteDataTable(SpName, ConvertClassToArray.GetParamName(tg, null), ConvertClassToArray.GetValues(tg, 0));
            }
            catch
            {
                return null;
            }
        }
    }
}
